package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.dto.DeviceInfoDTO;
import com.zb.dto.QuotaAllInfo;
import com.zb.dto.QuotaDTO;
import com.zb.entity.TbAlarmModel;
import com.zb.util.Pager;


/**
 * @ClassName TbAlarmService
 * @Description 服务接口
 * @Author xm
 * @Date 2025/03/26 11:23
 **/
public interface TbAlarmService extends IService<TbAlarmModel> {
    /**
     * 验证指标是否报警
     * @param quotaDTO
     * @return
     */
    TbAlarmModel verifyQuota(QuotaDTO quotaDTO);

    /**
     * 返回完整的解析数据
     * @param deviceInfoDTO
     * @return
     */
    DeviceInfoDTO verifyDeviceInfo(DeviceInfoDTO deviceInfoDTO);

    Pager<QuotaAllInfo> queryAlarmToInflux(Long page,Long pageSize,
                                           String start,String end,
                                           String alarmName,String deviceId);
}
